//
//  View+Pint.m
//  gay
//
//  Created by apple on 15/8/5.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//

#import "View+Pint.h"
#import "objc/runtime.h"

@implementation View (Pint)

- (void)setSize:(int)size
{
    objc_setAssociatedObject(self, "size", @(size),
            OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (int)size
{
    NSNumber *num = objc_getAssociatedObject(self, "size");
    return num.intValue;
}

- (void)pintInfo
{
    NSLog(@" 这里调用了 pintInfo");
}
@end
